﻿using System;

namespace MessagePack.Formatters
{
	// Token: 0x02000100 RID: 256
	public class NilFormatter : IMessagePackFormatter<Nil>
	{
		// Token: 0x060003A7 RID: 935 RVA: 0x0000D61B File Offset: 0x0000BA1B
		private NilFormatter()
		{
		}

		// Token: 0x060003A8 RID: 936 RVA: 0x0000D623 File Offset: 0x0000BA23
		public int Serialize(ref byte[] bytes, int offset, Nil value, IFormatterResolver typeResolver)
		{
			return MessagePackBinary.WriteNil(ref bytes, offset);
		}

		// Token: 0x060003A9 RID: 937 RVA: 0x0000D62C File Offset: 0x0000BA2C
		public Nil Deserialize(byte[] bytes, int offset, IFormatterResolver typeResolver, out int readSize)
		{
			return MessagePackBinary.ReadNil(bytes, offset, out readSize);
		}

		// Token: 0x04000154 RID: 340
		public static readonly IMessagePackFormatter<Nil> Instance = new NilFormatter();
	}
}
